/*
 * @Author: 陈昌俊
 * @Date: 2021-08-06 17:25:51
 * @LastEditTime: 2021-11-14 15:30:53
 * @LastEditors: 杨超
 * @Description:
 */
import { InspectResultApi } from '@/api'
import CommonModel from './common'

class InspectResultkModel extends CommonModel {
    constructor() {
        super()
        this.api = new InspectResultApi()
    }
    // 添加处理记录
    async submitFlawRecord(data) {
        const res = await this.api.submitFlawRecord(data)
        return res
    }
    // 获取巡查任务详情巡查记录列表
    async getTaskRecord(data) {
        const res = await this.api.getTaskRecord(data)
        return res
    }
    // 获取巡查计划详情巡查记录列表
    async getPlanInspections(data) {
        const res = await this.api.getPlanInspections(data)
        return res
    }

    // 获添加机电设备缺陷
    async addDeviceInspection(data) {
        const res = await this.api.addDeviceInspection(data)
        return res
    }
}

export default InspectResultkModel
